package com.itheima.接口;
/*
类与类:单继承,多层继承
接口与接口:多继承,多层继承
实现类与接口:实现类可以实现多个接口
 */



public interface ContryRule {
    //强奸规则
    void qj();

}

interface ProvinceRule extends ContryRule{
    //吸毒规则
    void xd();
}

interface FamilyRule extends ProvinceRule {
    void cd();

}


interface SchoolRule extends ProvinceRule{


}

interface MyRule extends FamilyRule,SchoolRule{


}

class Student implements MyRule{
    @Override
    public void qj() {

    }

    @Override
    public void xd() {

    }

    @Override
    public void cd() {

    }
}